package org.hqs.feign.clients;

import org.hqs.feign.common.JsonResult;
import org.hqs.feign.pojo.QueueNo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "queuenoservice")
public interface QueueNoClient {
    @GetMapping("/queueno/")
    public JsonResult<List<QueueNo>> getAllQueueNos();

    @GetMapping("/queueno/{id}")
    public JsonResult<QueueNo>  getQueueNoById(@PathVariable int id);

    @PostMapping("/queueno/")
    public JsonResult insertQueueNo(@RequestBody QueueNo queueNo);

    @PutMapping("/queueno/{id}")
    public JsonResult updateQueueNo(@PathVariable int id, @RequestBody QueueNo queueNo);

    @DeleteMapping("/queueno/{id}")
    public JsonResult deleteQueueNoById(@PathVariable int id);
}
